﻿using Fuse8.ContentManagementFramework.Domain.Commands.CommandParameters;
using Fuse8.DomainFramework.Domain;

namespace Fuse8.ContentManagementFramework.Domain.Commands
{
    public abstract class CmsSiteSelectForHostnameCommand : BaseEntityParameterCommand<CmsSite, CmsSiteSelectForHostnameCommandParameter>
    {
        public override string CacheKey
        {
            get
            {
                return string.Format("Hostname_{0}",
                    CommandParameter.Hostname);
            }
        }

        public override string CommandName
        {
            get
            {
                return "CmsSiteSelectForHostnameCommand";
            }
        }
    }
}
